package com.service.balanceimpl;


import com.dao.BalanceMapper;
import com.model.Balance;
import com.service.BalanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 编写者：张佳齐
 * 编写时间：2019-5-29
 * 类模块描述：查询及相关增删改
 */
@Service
public class BalanceServiceImpl implements BalanceService{
    @Autowired
    private BalanceMapper balanceMapper;
    @Override
    public Balance selectByPrimaryKey(int bid){
        System.out.println("输入的参数为："+bid);
        return balanceMapper.selectByPrimaryKey(bid);
    }

    @Override
    public List<Balance> getAllB() {
        return balanceMapper.getAllB();
    }

    @Override
    public int delB(Integer bid) {
        return balanceMapper.delB(bid);
    }

    @Override
    public int insertB(Balance balancemodel) {
        return balanceMapper.insertB(balancemodel);
    }
}
